@layout("/common/_form.html",{js:["/assets/expand/plugins/jquery/jquery-3.2.1.min.js","/assets/modular/sim/general/security/machineCardBind.js"]}){

<form class="layui-form" id="cardBindForm" lay-filter="cardBindForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">绑定位置:<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select id="bindFor" name="bindFor" class="layui-select" lay-filter="bindFor">
                                <option value="0">话单侧</option>
                                <option value="1">网络侧</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">卡号类型:<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select id ="cardType" name="cardType" class="layui-select">
                                <option value="msisdn">MSISDN</option>
                                <option value="iccid">ICCID</option>
                                <option value="imsi">IMSI</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">卡号:<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input name="cardNum" placeholder="请输入卡号" type="text" class="layui-input" lay-verify="required|cardNum"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">绑定类型:<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select id ="operType" name="operType" class="layui-select">
                                <option value="1">1：机卡绑定</option>
                                <option value="2">2：机卡解绑</option>
                                <option value="3">3：绑定变更</option>
                            </select>
                        </div>
                    </div>
                    <div id="bindingStyleDiv" class="layui-inline layui-col-md12">
                        <div class="layui-row">
                            <label class="layui-form-label">绑定方式:</label>
                            <div class="layui-input-block">
                                <select id ="bindingStyle" name="bindingStyle" class="layui-select">
                                    <option value="" selected="selected">请选择</option>
                                    <option value="0">0：首话单自动绑定</option>
                                    <option value="1">1：人工录入IMEI段</option>
                                </select>
                            </div>
                            <p>绑定类型=1或3时，该项必选；绑定类型=1时，该项选0或1；绑定类型=3时，该项必须选1</p>
                        </div>
                    </div>
                    <div id="cdrShowIMEI" class="layui-inline layui-col-md12">
                        <div class="layui-row">
                            <label class="layui-form-label">IMEI:</label>
                            <div class="layui-input-block">
                                <input id="tac" name="tac" type="text" class="layui-input" lay-verify="tacVer"/>
                            </div>
                            <p>IMEI段，取IMEI的前8~14位；绑定方式=1时，该项必填；</p>
                        </div>
                    </div>
                    <div id="webShowIMEI" class="layui-inline layui-col-md12 layui-hide">
                        <div class="layui-row">
                            <label class="layui-form-label">IMEI:<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <input id="imei" name="imei" type="text" class="layui-input" lay-verify="imeiVer"/>
                            </div>
                            <p>绑定的IMEI，绑定/解绑/变更均必填</p>
                        </div>
                    </div>
                    <div id="cdrShowAttention" class="layui-inline layui-col-md12" style="text-align: center">
                        <p>注：变更必须是在机卡分离停机前才可操作；同一卡号30分钟内不能通过此类接口重复办理业务</p>
                    </div>
                    <div id="webShowAttention" class="layui-inline layui-col-md12 layui-hide" style="text-align: center">
                        <p>注：目前仅支持以下21省（市）的物联卡：江苏、黑龙江、吉林、辽宁、内蒙古、北京、天津、<br/>
                            河北、山东、山西、甘肃、安徽、福建、江西、湖南、贵州、广西、广东、海南、浙江、上海;<br/>
                            同一卡号30分钟内不能通过此类接口重复办理业务；</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>
</form>
@}
